projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81ef6f2
)
Fix type max value for consistency
author
Mukund Sivaraman
<muks@banu.com>
Thu, 26 Feb 2015 14:27:14 +0000
(19:57 +0530)
committer
Mukund Sivaraman
<muks@banu.com>
Thu, 26 Feb 2015 14:27:14 +0000
(19:57 +0530)
babl/babl-type.c
patch
|
blob
|
history
diff --git
a/babl/babl-type.c
b/babl/babl-type.c
index 596346a0c2960e3443307e6e5118ddcbb4556940..38feaeb157d06327041f4f929d6486478db45e19 100644
(file)
--- a/
babl/babl-type.c
+++ b/
babl/babl-type.c
@@
-108,7
+108,7
@@
babl_type_new (void *first_arg,
{
bits = va_arg (varg, int);
min = 0;
- max =
1 << bits
;
+ max =
(1 << bits) - 1
;
}
else if (!strcmp (arg, "integer"))
{